package com.blb.community_admin.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.community_admin.entity.SysLogininfor;
import com.blb.community_admin.mapper.LogininforMapper;
import com.blb.community_admin.service.ILogininforService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author hkp
 */
@Service
public class LogininforServiceImpl extends ServiceImpl<LogininforMapper, SysLogininfor> implements ILogininforService {

    @Resource
    private LogininforMapper logininforMapper;

    @Override
    public IPage<SysLogininfor> selectLoginInForPage(Integer current, Integer size, String ipaddr, String userName, String status, String startTime, String endTime, String prop, String order) {
        return logininforMapper.selectLoginInForPage(new Page<>(current, size), ipaddr, userName, status, startTime, endTime, prop, order);
    }
}
